package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 活动管理对象 event
 * 
 * @author ruoyi
 * @date 2022-12-25
 */
public class Event extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动id */
    private Long eid;

    /** 活动名称 */
    @Excel(name = "活动名称")
    private String ename;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 状态  1已发布 2未发布 */
    @Excel(name = "状态  1已发布 2未发布")
    private Long statusBar;

    private Date createTime;//活动创建时间

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setEid(Long eid)
    {
        this.eid = eid;
    }

    public Long getEid()
    {
        return eid;
    }
    public void setEname(String ename)
    {
        this.ename = ename;
    }

    public String getEname()
    {
        return ename;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setStatusBar(Long statusBar)
    {
        this.statusBar = statusBar;
    }

    public Long getStatusBar()
    {
        return statusBar;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("eid", getEid())
            .append("ename", getEname())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("statusBar", getStatusBar())
            .toString();
    }
}
